package com.lei.design.command.garagedoor;

/**
 * @Author LeiXiaoLei
 * @Date 2022/5/20 11:20
 * @Version 1.0
 */
public class GarageDoor {
    private int status = 0;

    private String name;

    public GarageDoor(String name) {
        this.name = name;
    }

    public void off() {
        status = 0;
        System.out.println("GarageDoor is off");
    }

    public void on() {
        status = 1;
        System.out.println("GarageDoor is on");
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
